// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import fastclick from 'fastclick'
import lazyLoad from 'vue-lazyload'
import store from './store'
import 'common/stylus/index.styl'
import 'common/reset.css'
Vue.prototype.$axios = axios
// 解决移动端300秒延迟问题
fastclick.attach(document.body)
Vue.config.productionTip = false
// 懒加载
Vue.use(lazyLoad, {
  error: './static/error.png',
  loading: './static/loading.png'
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
